<h1 class='text-info'><?= $idvenda ?> - Serviços Comprados</h1>
<a href="?s=cServicosComprados&idvenda=<?= $idvenda ?>&adicionar" class="btn btn-sm btn-primary" title="Adicionar venda"><i class="glyphicon glyphicon-plus"></i> Adicionar Servico</a>
<a href="?s=cvenda&idvenda=<?= $idvenda ?>&total=<?= $lista[0]['total'] ?>&finalizar" class="btn btn-sm btn-success" title="Finalizar venda"><i class="glyphicon glyphicon-thumbs-up"></i> Finalizar Venda</a>
<br/>
<br/>
<table class="table table-striped table-hover">
    <tr>
        <th>Preço</th>
        <th>Quantidade</th>
        <th>Serviço</th>
        <th>Opções</th>
    </tr>
    <?php foreach ($lista as $ele) { ?>
        <tr>
            <td><?= $ele['precoNome'] ?></td>
            <td><?= $ele['quantidade'] ?></td>
            <td><?= $ele['servico'] ?></td>
            <td>
                <a href="?s=cServicosComprados&idvenda=<?= $idvenda ?>&del=<?= $ele['idservicosComprados'] ?>" class="btn btn-xs btn-danger" title="Excluir Item"><i class="glyphicon glyphicon-trash"></i></a>
            </td>
        </tr>
    <?php } ?>
</table> 
<div class="alert alert-info" role="alert"><strong>Total: <?= $lista[0]['total'] ?></strong></div>
